package com.menhai.personmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.User;
import com.menhai.personmanagement.entity.co.UserCo;
import com.menhai.personmanagement.entity.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shikun
 * @since 2021-11-25
 */
@Mapper
public interface UserMapper extends BaseMapper<User>{

 List loginActive(@Param("telephone") String telephone,@Param("password") String password,@Param("isAvailable") int isAvailable);
 List<User> login(@Param("mobile") String mobile, @Param("password") String password);

 IPage<User> selectByList(@Param("page")Page<User> page, @Param("user") UserCo user);

 IPage<User> selectByisAvailable(@Param("page")Page<User> page, @Param("user") UserCo user);

 List<UserVo> selectByListExport(@Param("user") UserCo user);

 UserVo selectByidlist(@Param("user") User user);

}
